Added names to token position tests #1961
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a toString method to TokenPositionTestData, so JUnit shows a human readable name for each test.
This is the new output:
[1] Anno_2.java
[2] Anno_3.java
[3] JAnnoTBegin-End_1.java
[4] JAnnoTBegin-End_2.java
[5] VarDef_1.java
[6] Anno_4.java
[7] Anno_1.java
This is the old output (See #1960):
[1] de.jplag.testutils.datacollector.TokenPositionTestData@2fd6b6c7
[2] de.jplag.testutils.datacollector.TokenPositionTestData@5bfa9431
[3] de.jplag.testutils.datacollector.TokenPositionTestData@5db250b4
[4] de.jplag.testutils.datacollector.TokenPositionTestData@223f3642
[5] de.jplag.testutils.datacollector.TokenPositionTestData@38c5cc4c
[6] de.jplag.testutils.datacollector.TokenPositionTestData@37918c79
[7] de.jplag.testutils.datacollector.TokenPositionTestData@78e94dcf